﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<DateTime>" %>
<%= Html.TextBox("",
                 Model.ToShortDateString(), 
                 new { maxlength=10, @class="editor-fecha" }) 
%>
(dd/mm/aaaa)
<script type="text/javascript">
    if (typeof (jQuery) == 'function') {
        $(function () {
            if ($.datepicker) {
                $('#<%=this.ViewData.TemplateInfo.GetFullHtmlFieldId("") %>')
                .datepicker();
            }
        });
    }
</script>